// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import App from './App' 
import Vue from 'vue'
import router from './router'
import ElmentUI from 'element-ui'
import VueRouter from 'vue-router'
import './assets/css/global.css'
import 'element-ui/lib/theme-chalk/index.css'
import axios from'axios'
//设置请求的根路径
axios.defaults.baseURL = "http://localhost:8080/"

Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.use(VueRouter)
Vue.use(ElmentUI)

//Vue.prototype.$message = Message
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})